<template>
	<view class="contents" :style="'height:'+screenHeight+'px;'">
		
			<view class="none" v-if="show">
				<view class="coent">
					<u-empty text="暂无报告" mode="list" icon-size="200">
					</u-empty>
				</view>
			</view>
			<view class="conentaa" v-else>
				<view  v-for="(item,index) in datalist" :key="index">
					<view class="" style="display: flex;align-items: center;">
					<view
					  class="blue-circle"
					  style="width: 40rpx; height: 40rpx; background-color: #007AFF; border-radius: 50%;"
					></view>
					<h3 class="" style="margin-left: 2%;">
					
						体检类型：{{item.feename}}
					</h3>	
					</view>
					
		
					<view class="list" v-for="(item,index) in item.list" :key="index">
						<view class="listb">
							<span style="font-weight: 700;">套餐名称:&nbsp;</span>
							<span>{{item.name}}</span>
						</view>
						
						<!-- <view class="lista" style="margin-bottom: 10rpx;">
							<span>套餐名称:&nbsp;<span style="font-weight: bold;">{{item.name}}</span></span>
						</view> -->
						<view class="listb">
							<span style="font-weight: 700;">诊断医师:&nbsp;</span>
							<span>{{item.ename}}</span>
						</view>
						<view class="listb">
							<span style="font-weight: 700;">检查所见:&nbsp;</span>
							<span>{{item.lcsj}}</span>
							
							
						</view>
						<view class="listb">
							<span style="font-weight: 700;">检查诊断:&nbsp;</span>
							<span>{{item.lczd}}</span>
							
							
						</view>
						<view class="listb">
							<span style="font-weight: 700;">状态:&nbsp;</span>
							<span>{{item.state}}</span>
							
							
						</view>
					</view>
				</view>
			</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show:true,
				jianyival:'',
				screenHeight: getApp().globalData.screenHeight-44,
				datalist: '',
				}
		},
		onLoad() {
			this.list()
		},
		methods: {
			list() {
				uni.showLoading({
					title: '请稍后',
					mask: true
				});
				this.$request("auth","pacsinfo",{type:1}).then(res => {
					
					if (res.code == 1) {
						this.datalist = res.data.resultdata
						this.show=false
					console.log("报告查询", this.datalist)
						uni.hideLoading();
					} else {
						this.show=true
						uni.hideLoading();
						uni.showToast({
							title: res.msg,
							icon: 'none',
							duration: 2000
						});
					}
				}).catch(err => {
					this.show=true
					uni.hideLoading();
					console.log("err", err)
					uni.showToast({
						title: err,
						icon: 'none',
						duration: 1000
					});
				});
			}
		}
	}
</script>

<style>
	@import './bgcx.css';
</style>